/**
 * Copyright (c) 2018 软唐 All rights reserved.
 *
 * https://www.softtown.cn
 *
 * 版权所有，侵权必究！
 */

package com.softtown.modules.dapai.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.softtown.common.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 售后申请单表
 *
 * @author
 * @since 1.0.0
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("comp_after_sale")
public class CompAfterSaleEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 * id
	 * isNullAble:0
	 */
	@ApiModelProperty(value = "id")
	private Long id;

	/**
	 * 公司id
	 * isNullAble:0
	 */
	@ApiModelProperty(value = "公司id")
	private Long compId;

	/**
	 * 预计调试日期
	 * isNullAble:1
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ApiModelProperty(value = "预计调试日期")
	private Date debugDate;

	/**
	 * 维护说明
	 * isNullAble:0
	 */
	@ApiModelProperty(value = "维护说明")
	private String  directions;


	/**
	 * 审批流id
	 * isNullAble:0
	 */
	@ApiModelProperty(value = "审批流id")
	private Long aprvProcId;

	/**
	 * 客户id
	 * isNullAble:0
	 */
	@ApiModelProperty(value = "客户id")
	private Long custId;

	/**
	 * 联系人id
	 * isNullAble:0
	 */
	@ApiModelProperty(value = "联系人id")
	private Long contactsId;
	/**
	 * 审批状态0:未提交 1：审批中 2：已完成 3：已撤销 4：已退回 5：已终止 6：预警
	 * isNullAble:0
	 */
	@ApiModelProperty(value = "审批状态0:未提交 1：审批中 2：已完成 3：已撤销 4：已退回 5：已终止 6：预警")
	private Integer	aprvStatus;


	/**
	 * 创建者
	 * isNullAble:1
	 */
	@ApiModelProperty(value = "创建者")
	private Long creator;

	/**
	 * 创建时间
	 * isNullAble:1
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ApiModelProperty(value = "创建时间")
	private Date createDate;

	/**
	 * 更新者
	 * isNullAble:1
	 */
	@ApiModelProperty(value = "更新者")
	private Long updater;

	/**
	 * 更新时间
	 * isNullAble:1
	 */
	@ApiModelProperty(value = "更新时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date updateDate;

	/**
	 * 更新时间戳
	 * isNullAble:1
	 */
	@ApiModelProperty(value = "更新时间戳")
	private String updateTimestamp;

	/**
	 * 逻辑删除
	 * isNullAble:1,defaultVal:0
	 */
	@ApiModelProperty(value = "逻辑删除")
	private Integer isDeleted;

}
